const state = {
  userinfo: '',
}

// getters
const getters = {
  getUserinfo: (string, getters) => {
    return this.publicKey;
  }
}

// actions
const actions = {
  setUserinfo({ commit, state }, arg) {
    commit('UpdateUserinfo', arg);
  },
}

// mutations
const mutations = {
  UpdateUserinfo(state, arg) {
    state.userinfo = arg;
  },
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}